import React from "react";
import ReactDOM from "react-dom";
import './src/less/index.less'
import {BrowserRouter,Route,Link,HashRouter} from 'react-router-dom'
import 'antd-mobile/dist/antd-mobile.css';
import Login from "./src/login/login.js";
import Main from "./src/main/main.js"

class Entry extends React.Component {
  render() {
    return (
        <div>
            <div className="center">
                <Login />
            </div>
        </div>)
  }
}


var mountNode = document.getElementById("app");
ReactDOM.render((
    <div>
        <BrowserRouter>
            <Route path="/" component={Entry} />
        </BrowserRouter>
        <BrowserRouter>
            <Route exact path="/index" component={Main} />
        </BrowserRouter>
    </div>
    ), mountNode);